<?php include("../Service/WebClass/plan/excludeEditClass.php");
$Entity = new Excluded;
$Entity->MyTask();
?>	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>AD LISTING</title>
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script language="JavaScript" src="../js/common.js" type="text/javascript"></script>
<script src="../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function showDelete(){
		document.getElementById("mainform").submit();
	}
</script>
</head>

<body>
<form name="searchform" method="post">
<table width="100%" border="0" cellpadding="4" cellspacing="0" class="tbl where">
	<?php if($Entity->insRslt == -1) {?>
	<tr>
    	<td><font color="red" size="5">除外キーワードの追加に失敗しました！</font></td>
    </tr>
    <?php }else if($Entity->insRslt == 1) {?>
    <tr>
    	<td><font color="blue" size="5">除外キーワードの追加に成功しました！</font></td>
    </tr>
        <?php }else if($Entity->insRslt == -2) {?>
    <tr>
    	<td><font color="blue" size="5">除外キーワードの削除に失敗しました！</font></td>
    </tr>
        <?php }else if($Entity->insRslt == 2) {?>
    <tr>
    	<td><font color="blue" size="5">除外キーワードの削除に成功しました！</font></td>
    </tr>
	<?php }?>
    <tr>
	  <td>除外キーワード
		  <span id="sprytextfield1">
		  <input type="text" name="ins_text" size="35" maxlength="100" value="<?php echo $Entity->ins_text; ?>" class="txBox" />
	    <span class="textfieldRequiredMsg">除外キーワードを指定してください。</span></span>	  &nbsp;&nbsp;
	  <input type="submit" class="btn new" value=""/></td>
	</tr>
</table>
</form>
<form name="mainform" id="mainform" method="post">
<input type="hidden" name="del_ids" value="">
<input type="hidden" name="action" value="">

<br>
  <table width="100%" border="0" cellpadding="4" cellspacing="0" class="tbl where">
	<tr>
		<td>除外キーワード
		  <input type="text" name="search_text" size="35" maxlength="100" value="<?php echo $Entity->search_text; ?>" class="txBox">
		  &nbsp;&nbsp;			<input type="submit" class="btn search" value="">
		</td>
	</tr>
</table>
<br>


<table width="100%" border="0" cellpadding="2" cellspacing="0">
	<tr>
		<td align="left">		</td>
		<td align="right"><label for="show_deleted"></label>
		  <input name="show_deleted" type="checkbox" id="show_deleted" value="1" <?php if($Entity->show_deleted==1) echo checked; ?> onclick="showDelete();" />
		  <label for="show_deleted">削除済みも表示</label>&nbsp;&nbsp;
<input type="button" class="btn del" onclick="sub_delete2();">
			<input class="btn refresh" onclick="document.location.reload();" type="button">		</td>
	</tr>
	<tr>
	  <td align="left"></td>
	  <td align="right">&nbsp;</td>
    </tr>
</table>
<?php $Entity->getSelectSqlForExclude()?>
<br>

</form>

<div id="input_area">
</div>						<!-- end of main area -->
<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
//-->
</script>
</body>
</html>
